
{% extends 'base.html'%}
{% block content %}

	{% if user.is_authenticated %}
		 {% if has_rated %}
		 	already voted: {{ has_rated.rating }}
		 {% else %}
			<form action="" method="POST">
				{{ form }}
				
				<input type="submit" name="submit" value="Rate" />
			</form>
			{% endif %}
	  {% endif %}


<br/>
{%endblock%}